import { Modal } from 'antd'
import type { ModalProps } from "antd"
import { FC } from 'react'
import './xlmodal.scss'
export interface XlModalProps extends ModalProps {
  
}

const XlModal: FC<XlModalProps> = (props) => {
  const { children, wrapClassName = '' } = props
  return (
    <Modal
      {...props}
      wrapClassName={["XlModal", wrapClassName].join(" ")}
    >
      {children}
    </Modal>
  )
}

XlModal.defaultProps = {
  title: "标题",
  cancelText: '取消',
  okText: '确定',
  centered: true
}

export default XlModal

